<?php
$this->title = "Пользователи";
$this->headTitle($this->title);
?>
<p><a href="<?php echo $this->url(array(),'adminaddusers',true);?>">Добавить пользователя</a></p>
<table>
    <tr>
        <th>Логин</th>
        <th>E-mail</th>
        <th>Роль</th>
        <th>Активен</th>
        <th>Бан</th>
        <th>&nbsp;</th>
    </tr>
    <?php foreach ($this->users as $users): ?>
      <tr>
          <td>
        <a href="<?php echo $this->url(array('usersId' => $users->getId()),'adminviewusers');?>">
            <?php echo $this->escape($users->login);?>
        </a>
    </td>
    <td><?php echo $this->escape($users->email);?></td>
    <td><?php echo $this->escape($users->role);?></td>
    <td><?php echo $this->escape($users->activated);?></td>
    <td><?php echo $this->escape($users->ban);?></td>
    <td>
        <a href="<?php echo $this->url(array('usersId' => $users->getId()),'admineditusers');?>">Редактировать</a>
        <a href="<?php echo $this->url(array('usersId' => $users->getId()),'admindeleteusers');?>">Удалить</a>
    </td>
</tr>
  <?php endforeach; ?>
</table><div id="elfinder"></div>